import request from '@/utils/request'
import Qs from 'qs'
// 请求IC卡列表
export function getIcCardTypeList (params) {
  return request({
  params,
  url: '/back/icCard/getIcCardList'
  })
  }

// 新增
export function addIcCard (data) {
  return request({
    method: 'post',
    data:Qs.stringify(data),
    url: '/back/icCard/addIcCard',
    headers:{'content-type': 'application/x-www-form-urlencoded'}
  })
}

//修改状态
export function updateIsFlag (data) {
  return request({
    method: 'post',
    data:Qs.stringify(data),
    url: '/back/icCard/updateIsFlag',
    headers:{'content-type': 'application/x-www-form-urlencoded'}
  })
}


//解绑
export function unbindingIcCard (data) {
  return request({
    method: 'post',
    data:Qs.stringify(data),
    url: '/back/icCard/unbindingIcCard',
    headers:{'content-type': 'application/x-www-form-urlencoded'}
  })
}
// // 删除
// export function del (data) {
//   return request({
//     method: 'post',
//     data:Qs.stringify(data),
//     url: '/back/icCard/deleteCardType',
    // headers:{'content-type': 'application/x-www-form-urlencoded'}
//   })
// }